﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace welding
{
    public partial class WarningMessageBox : Form
    {
        private string warningmessage;

        public WarningMessageBox()
        {
            InitializeComponent();
        }

        public WarningMessageBox(string warningMessage)
        {
            InitializeComponent();
            this.warningmessage = warningMessage;
            
        }

        private void WarningMessageBox_Load(object sender, EventArgs e)
        {
            tbWarningMessage.Text = warningmessage;
            tbWarningMessage.BackColor = Color.Red;
            tbWarningMessage.ForeColor = Color.White;
        }

        private void btnWarningMessageOk_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
